package sv.edu.edutec.fotos.servlet;

import java.security.Principal;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/index")
public class HelloServlet {
	
	@RequestMapping(method = RequestMethod.GET)
	public String printWelcome(ModelMap model, Principal principal,
			HttpServletRequest request) {
		model.put("message", "Hello, world!");
		return "hello";
	}

}
